package com.mio.web.entity.producttype;

import java.util.Date;

import org.durcframework.core.expression.annotation.ValueField;
import org.durcframework.core.support.SearchEasyUI;
import org.durcframework.core.util.DateUtil;


public class ProducttypeSch extends SearchEasyUI{

	//���ʱ����������Ĳ���
	private Date createdStartSch;
	private Date createdEndSch;

	@ValueField(column = "createdTime", equal = ">=")
	public Date getCreatedStartSch() {
		return createdStartSch;
	}

	public void setCreatedStartSch(Date createdStartSch) {
		this.createdStartSch = createdStartSch;
	}

	@ValueField(column = "createdTime", equal = "<")
	public Date getCreatedEndSch() {
		if (createdEndSch != null) {
			return DateUtil.getDateAfterDay(createdEndSch, 1);
		}
		return createdEndSch;
	}

	public void setCreatedEndSch(Date createdEndSch) {
		this.createdEndSch = createdEndSch;
	}


    private Integer idSch;
    private String productTypeNameSch;
    private Integer parentIdSch;
    private String createdTimeSch;
    private String editedTimeSch;
    private Boolean isDeletedSch;
    private Integer sortIdSch;

    public void setIdSch(Integer idSch){
        this.idSch = idSch;
    }
    
    @ValueField(column = "id")
    public Integer getIdSch(){
        return this.idSch;
    }

	public void setParentIdSch(Integer parentIdSch) {
		this.parentIdSch = parentIdSch;
	}
	
    @ValueField(column = "parentId")
    public Integer getParentIdSch() {
		return parentIdSch;
	}

	public void setProductTypeNameSch(String productTypeNameSch){
        this.productTypeNameSch = productTypeNameSch;
    }
    
    @ValueField(column = "productTypeName")
    public String getProductTypeNameSch(){
        return this.productTypeNameSch;
    }

    public void setCreatedTimeSch(String createdTimeSch){
        this.createdTimeSch = createdTimeSch;
    }
    
    @ValueField(column = "createdTime")
    public String getCreatedTimeSch(){
        return this.createdTimeSch;
    }

    public void setEditedTimeSch(String editedTimeSch){
        this.editedTimeSch = editedTimeSch;
    }
    
    @ValueField(column = "editedTime")
    public String getEditedTimeSch(){
        return this.editedTimeSch;
    }

    public void setIsDeletedSch(Boolean isDeletedSch){
        this.isDeletedSch = isDeletedSch;
    }
    
    @ValueField(column = "isDeleted")
    public Boolean getIsDeletedSch(){
        return this.isDeletedSch;
    }

    public void setSortIdSch(Integer sortIdSch){
        this.sortIdSch = sortIdSch;
    }
    
    @ValueField(column = "sortId")
    public Integer getSortIdSch(){
        return this.sortIdSch;
    }


}